<template>
    <div>
        <div>
            <button @click="comName='SubjectAll'">专业</button>
            <button @click="comName='TeacherAll'">教师</button>
            <button @click="comName='DirectionsAll'">班主任</button>
        </div>
        <div>
            <component :is="comName"></component>
        </div>
    </div>
</template>

<script>
import SubjectAll from '@/views/subjects/SubjectAll.vue'
import TeacherAll from '@/views/teachers/TeacherAll.vue'
import DirectionsAll from '@/views/directors/DirectionsAll.vue'
export default {
    data(){
        return{
            comName:'SubjectAll'
        }
    },
    components:{SubjectAll,TeacherAll,DirectionsAll}
}
</script>

<style>

</style>